home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.modula2
- Path: cix.compulink.co.uk!usenet
- From: mark_tbu@cix.compulink.co.uk ("Mark Morgan Lloyd ")
- Subject: Re: Other Modula-2 Problems
- Message-ID: <Dnr7wv.8sJ@cix.compulink.co.uk>
- Organization: KDG Mobrey Telemetry
- References: <313171a2.15277270@news-stand.acs.ohio-state.edu>
- Date: Mon, 4 Mar 1996 17:43:43 GMT
- X-News-Software: Ameol
-
- > I have some other questions also. I have to make a program that uses
- > infinite series to approximate the value of SIN (a). The line that my
- > teacher gave me for this is: "sin(a)=a-a3/3!+a5/5!-a7/7!+a9/9!...."
- > What does this translate to in the way of a formula? I need to know
- > this so I can write a procedure that will use the variable that will
- > obviously be involved.
-
- Sorry, this is trivial algebra and you shouldn't need to ask.
-
- > Another problem concerns writing a procedure that will computer the
- > binary XOR's of two decimal numbers. I know how to get the binary
- > values for each of the decimal numbers (using MOD & DIV), but how do I
- > compare the two binary numbers when I'm finished with this? Is there
- > some kind of comparison command like with strings?
-
- This does not make sense. Try expressing your problem a bit better and
- you may be able to work out what you're trying to do.
-
- Mark Morgan Lloyd
- mark_tbu@cix.compulink.co.uk
-
- [Opinions above are the author's, not those of his employers or
- colleagues]
-